//
//  LMKChatMessage.h
//  LMK
//
//  Created by xuxinhua on 2020/2/28.
//  Copyright © 2020 xuxinhua. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger,LMKChatMessageStatus) {
    LMKChatMessageStatusNone = 10,
    LMKChatMessageStatusSending,
    LMKChatMessageStatusSuccess,
    LMKChatMessageStatusFail,
    LMKChatMessageStatusDelete
};

typedef NS_ENUM(NSInteger,LMKChatMessageReadStatus) {
    LMKChatMessageReadStatusUnread = 0,
    LMKChatMessageReadStatusRead
};

typedef NS_ENUM(NSInteger,LMKChatMessageSource) {
    LMKChatMessageSourceMe = 0,
    LMKChatMessageSourceOther
};

typedef NS_ENUM(NSInteger,LMKChatMessageOtherReceivedStatus) {
    LMKChatMessageOtherReceivedStatusUnReceived = 0,
    LMKChatMessageOtherReceivedStatusReceived
};
NS_ASSUME_NONNULL_BEGIN

@interface LMKChatMessage : NSObject<NSCopying,NSMutableCopying>
@property (nonatomic,assign) NSInteger pkid;//主键
@property (nonatomic,assign) long time;//消息时间
@property (nonatomic,copy) NSString *appId;//消息归属应用
@property (nonatomic,copy) NSString *fromUser;//消息发送人json
@property (nonatomic,copy) NSString *messageSequeue;//消息序列
@property (nonatomic,copy) NSString *json;//消息完整报文


@property (nonatomic,copy) NSString *roomId;//房间号

@property (nonatomic,copy) NSString *loginAccId;
@property (nonatomic,assign) LMKChatMessageStatus status;//消息状态
@property (nonatomic,assign) LMKChatMessageReadStatus otherRead;//用户接收的消息是否已读
@property (nonatomic,assign) LMKChatMessageSource source;//消息来源自己还是别人
@property (nonatomic,assign) LMKChatMessageOtherReceivedStatus otherReceived;//对方是否已接收

@end

NS_ASSUME_NONNULL_END

